#pragma once
#include "AppInterface.h"
#include "ataskinterface.h"
#include "plugininterface.h"
#include <qobject.h>
#include <qlineedit.h>
#include <QDoubleSpinBox>


class PluginChla:public QObject, public ARSSPluginInterface
{
	Q_OBJECT
public:
	PluginChla(ARSSAppInterface* appi) :_appi(appi), _widget(0), 
		_lineEditRed(0), _lineEditNir(0),
		_lineEditA(0), _lineEditB(0),
		_lineEditOutput(0),_lineEditScale(0){}

	virtual void initGui() ;
	virtual void unload()  ;

public slots:
	void onMenu();
	void onRun();
	void onOpenInputRed();
	void onOpenInputNir();
	void onOpenOutput();
	// for task.
	void onTaskDone();
private:
	ARSSAppInterface* _appi;
	QLineEdit* _lineEditRed;
	QLineEdit* _lineEditNir;
	QLineEdit* _lineEditA;
	QLineEdit* _lineEditB;
	QLineEdit* _lineEditOutput;
	QLineEdit* _lineEditScale;

	QWidget* _widget;

	static int _serialId;
};

